package down.sallai.ml.util;

import down.sallai.ml.GitdownApplication;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class RunTime{

    public static long getRunTime(){
        Date nowDate = new Date();
        Date startDate = GitdownApplication.data;
        long day = (nowDate.getTime()-startDate.getTime()/(1000*60*60*24));
        System.out.println(day);
        return day;

    }


}
